package com.hh.servlet.echat;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hh.dao.BRJBXXDAO;

/**
 * Servlet implementation class TZYY
 */
@WebServlet("/TZYY")
public class TZYY extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public TZYY() {
        super();
    }

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setCharacterEncoding("utf-8");
		request.setCharacterEncoding("utf-8");
		response.setHeader("content-type", "text/html;charset=UTF-8");
		String start = request.getParameter("start");
		String end = request.getParameter("end");
		BRJBXXDAO  dao = new BRJBXXDAO();
		response.getWriter().print(dao.getTZYYList(start,end));
	}

}
